package cn.seecoder.ai.model.vo;

import cn.seecoder.ai.enums.PredictionStateEnum;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.Comment;

import javax.persistence.*;
import java.util.Date;

/**
 * @author fanyanpeng
 * @date 2023/4/11 23:09
 */
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Data
public class PredictionVO {

    private Integer id;

    private Integer modelId;

    private Integer userId;

    private Integer fileInfoId;

    private String predictionFileDownloadingUri;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private PredictionStateEnum predictionState;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date createdTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date finishTime;

    private String exampleData;

}
